package com.jeomo.masterdata.starter.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jeomo.base.starter.annocations.Keyword;
import com.jeomo.base.starter.entity.BaseEntity;

/**
 * <h3>jeomo</h3>
 * <p>品牌实体</p>
 *
 * @author : 崔贺
 * @date : 2020-08-28 14:39
 **/
@TableName("master_brand")
public class Brand extends BaseEntity {
    private static final long serialVersionUID = 7229230358608002771L;

    /**
     * 品牌码
     */
    @TableId(value = "code", type = IdType.INPUT)
    @Keyword
    private String code;
    /**
     * 品牌名称
     */
    @Keyword
    private String name;
    /**
     * 组织码
     * <p>
     * Map,put("名称", name)</>
     */
    private String orgCode;

    /**
     * 启用标识
     */
    private Boolean startFlag = true;
    /**
     * 顶级组织码
     */
    private String topOrgCode;

    public String getTopOrgCode() {
        return topOrgCode;
    }

    public void setTopOrgCode(String topOrgCode) {
        this.topOrgCode = topOrgCode;
    }

    public String getCode() {
        return code;
    }

    public Boolean getStartFlag() {
        return startFlag;
    }

    public void setStartFlag(Boolean startFlag) {
        this.startFlag = startFlag;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getOrgCode() {
        return orgCode;
    }

    public void setOrgCode(String orgCode) {
        this.orgCode = orgCode;
    }

}
